package com.baizhi.dao;

import com.baizhi.entity.Node;
import com.baizhi.entity.Role;

import java.util.List;
import java.util.Map;
import java.util.Set;

public interface RoleDao {

    Set<Role> selectRolesByAdminName(String adminName);

    List<Role> selectAll();

    Role selectRoleByName(String roleName);

    void insertRole(Role role);

    void deleteRoleByName(String roleName);

    void updateRole(Role role);

    List<Map> selectPermissionByRoleName(List<String> roles);

    List<Node> selectSubNodes(Integer id);

    List<Map> selectSubIds(Integer parentId);
}
